Page({
  data:{
    placeList:[]
  },
  onLoad(){
    this.getplace()
  },
  getplace(){
    wx.cloud.callFunction({
      name:'getallplacelist'
    }).then(res=>{
      console.log(res)
      this.setData({
        placeList:res.result.data.reverse()
      })
    })
  },
})